cmake_minimum_required(VERSION 3.12)

project(use_eigen)

set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build/bin) 
set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build/lib) 

find_package(Eigen3 REQUIRED)
# 注意以下地址替换成你自己的eigen3文件夹
include_directories("D:/eigen/eigen-3.3.9")
include_directories(".")

file(GLOB USER_SOURCE "*.cpp")
add_executable(${PROJECT_NAME} ${USER_SOURCE})
